﻿@model TCM.CourseSchedule

@using (Html.BeginCollectionItem("CourseSchedules"))
{   
     
    <td class="timepicker">
        @Html.EditorFor(model => model.FromTimeOnly, new { @class = "timepicker" })
    </td>
    <td class="timepicker">
        @Html.EditorFor(model => model.ToTimeOnly, new { @class = "timepicker" })
        @Html.ValidationMessageFor(model => model.ToTimeOnly)
    </td>
    <td>
        @Html.DropDownListFor(model => model.DayID, (SelectList)ViewBag.SelectDayOfWeek, string.Empty)
    </td>
    <td>
        @if (Model != null)
        {
            if (Model.CourseScheduleID != Guid.Empty)
            {
            @Html.CheckBoxFor(model => model.DeletedByUI)    
            }
        }
         @Html.HiddenFor(model => model.CourseID)
        <div class="HiddenFor">
           
            @Html.HiddenFor(model => model.CourseScheduleID)
            @Html.HiddenFor(model => model.DayName)
        </div>

    </td>
    
}

<script type="text/javascript">


    function removeschedule_click(sender, eCOURSESCHEDULEID) {

        //$.post("../RemoveSchedule/" + eCOURSESCHEDULEID, null, function (data) {
        //    sender.parent().parent().remove();
        //});


    }



</script>
